package com.sltx.service.impl;

import com.sltx.mapper.LogMapper;
import com.sltx.service.LogService;
import com.sltx.util.Conversion;
import com.sltx.util.PageData;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

/**
 * 日志/限制
 */
@Service
public class LogServiceImpl implements LogService {

    @Autowired
    private LogMapper logMapper;


    //查询有多少家企业
    @Override
    public Integer getNum() {
        return logMapper.getNum();
    }

    //查询企业名称
    @Override
    public String getEntname() {
        return logMapper.getEntname();
    }

    //将此企业是否推送改为1
    @Override
    public void updateisDelect(String entName) {
        logMapper.updateisDelect(entName);
    }

    //如果报错就删除这家企业
    @Override
    public void delect(PageData pd) {
        logMapper.delect(pd);

    }


}
